import request from '@/utils/request'
//数据接口
export function getList(params) {
    return request({
        url: '/prod/prod/page',
        method: 'get',
        params,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
//删除
export function delFun(data) {
    return request({
        url: '/prod/prod',
        method: 'DELETE',
        data,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
//运费设置数据
export function FreightList(data) {
    return request({
        url: '/shop/transport/list',
        method: 'GET',
        data,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
//规格值
export function StandardList(data) {
    return request({
        url: '/prod/spec/list',
        method: 'GET',
        data,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
//产品分类
export function ClassifyList(data) {
    return request({
        url: '/prod/category/listCategory',
        method: 'GET',
        data,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}
//产品分组
export function GroupingList(data) {
    return request({
        url: '/prod/prodTag/listTagList',
        method: 'GET',
        data,
        headers: {
            'authorization': localStorage.getItem('token')
        }
    })
}